package com.restaurant.springboot.repositories;

import com.restaurant.springboot.entity.OrderItemEntity;
import com.restaurant.springboot.entity.OrderItemEntityPK;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface OrderItemRepository extends JpaRepository<OrderItemEntity, OrderItemEntityPK> {
    List<OrderItemEntity> findAllByOrOrderId(int orderId);
}